package com.java2_4;
//javabean
public class classmember {
    private String name; //private是在不同的class下不能使用了
    private int age;
    private int index;
    private char sex;
    public classmember(){

    }

    public classmember(String name, int age, int index, char sex) {
        this.name = name;
        this.age = age;
        this.index = index;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge(){
        return age;
    }

    public void setAge(int age){
        this.age = age;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public void text(){
        System.out.println("this is a test!");
    }
}
